import {http} from "@/utils/http/axios";
import {storage} from '@/utils/Storage';

export function userPage(params) {
  return http.request({
    url: window.SITE_CONFIG.baseUrl + '/user/page',
    headers: {token: storage.get('token')},
    method: 'POST',
    params,
  });
}

export function updateUserStatus(id) {
  return http.request({
    url: window.SITE_CONFIG.baseUrl + '/user?id=' + id,
    headers: {token: storage.get('token')},
    method: 'PUT',
  });
}
